package models

import "gorm.io/gorm"

type App struct {
	gorm.Model
	Title  string `gorm:"type:varchar(30)" json:"title"`
	Nation string `gorm:"type:varchar(50)" json:"nation"`
	Open   string `gorm:"type:varchar(30)" json:"open"`
	Num    int    `gorm:"type:int" json:"num"`
}

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(20)" json:"username"`
	Password string `gorm:"type:varchar(200)" json:"password"`
}

type Types struct {
	gorm.Model
	Name string `gorm:"type:varchar(30)" json:"name"`
}
